//
//  GPLocationManager.h
//  Keping
//
//  Created by 23 on 2017/12/10.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import <CoreLocation/CoreLocation.h>

typedef void(^GPLocationManagerCallback)(BOOL success, CLLocation *location, CLPlacemark *placemark);


@interface GPLocationManager : CLLocationManager

/**当前位置*/
@property(nonatomic,strong,readonly) CLLocation *currentLocation;


#pragma mark - 单例
+ (instancetype)shareManager;

#pragma mark - API


/**
 请求获取当前位置并地址解析

 @param completion 回调
 */
- (void)requestCurrentLocationOnce:(void(^)(BOOL success, CLLocation *location, CLPlacemark *placemark))completion;

@end
